package entity

type Authority struct {
	AuthorityId int64 `gorm:"column:authority_id;type:BIGINT;primary_key" json:"authority_id"`

	AuthorityName string `gorm:"column:authority_name;type:VARCHAR(255)" json:"authority_name"`

	ParentId int64 `gorm:"column:parent_id;type:BIGINT" json:"parent_id"`

	DefaultRouter string `gorm:"column:default_router;type:VARCHAR(255)" json:"default_router"`

	Type int `gorm:"column:type;type:int" json:"type"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Authority) TableName() string {
	return "authoritys"
}
